package ys.mihoyo.ymcc.feign;


import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import ys.mihoyo.ymcc.result.JSONResult;


@Component
public class UaaCallBackFactory implements FallbackFactory<UaaFeignClient> {

    @Override
    public UaaFeignClient create(Throwable throwable) {
        return login -> JSONResult.success(-1L,"");
    }
}
